import {http} from "@/utils/http";

export const pageNode = (data,paged,pageSize) => {
  return http({
    url: `/page/node.json?pageSize=${pageSize}&paged=${paged}`,
    method: 'POST',
    data:data
  })
}

export const getNode = (id) => {
  return http({
    url: `/node.json?id=${id}`,
    method: 'GET'
  })
}
export const updateNode = (data) => {
  return http({
    url: `/node.json`,
    method: 'PUT',
    data
  })
}

export const nodeConfig = (data) => {
  return http({
    url: `/node/time/config.json`,
    method: 'PUT',
    data:data
  })
}
